package com.dao.impl;

import com.dao.UserDao;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

@Component("userDao")// 不加别名默认是userDaoImpl
public class UserDaoImpl implements UserDao {
    @Override
    public boolean login(String name,String password){
        if (name.equals("张三")&&password.equals("123")){
            return true;
        }
        return false;
    }
}
